package com.sky.service;

import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.vo.DishVO;

import java.util.List;

/**
 * @author ssm
 * @version v1.0
 * @ClassName DishService
 * @Date: 2025/6/12 20:06
 * @Description: 描述
 */
public interface DishService {
    void increase(DishDTO dishDTO);

    PageResult pageQuer(DishPageQueryDTO dishPageQueryDTO);

    void deleteBatch(List<Long> ids);

    DishVO dishWithFlavor(Long id);

    void updateWithFlavor(DishDTO dishDTO);


    List<DishVO> listWithFlavor(Dish dish);

    /**
     * 根据分类id查询菜品
     * @param categoryId
     * @return
     */
    List<Dish> list(Long categoryId);
}
